package SuperCraft;
import java.util.ArrayList;

import Mobs.*;
import Engine.*;
import Engine.PhysicEngine.*;

public class MobManager {
	private java.util.List<MobController> objects;
	private Level1 _world;
	
	public MobManager(Level1 world){
		this._world = world;
		objects = new ArrayList<MobController>();
	}
	
	public void AddMob(MobController Mob){
		
		objects.add(Mob);
		_world.engine.AddRenderComponent(Mob);
	}
	
	public void DrawMobs(){
		for (MobController item: objects) {
  			   item.drawMob();
    	}
	}
	
	public void Creeper(int X, int Y){
		Creeper creeper = new Creeper(_world.engine);
		creeper.setxPosition(X);
		creeper.setyPosition(Y);
		AddMob((MobController)creeper);
	}
}
